// 生成 mid
function genRandom() {
	let code = "";
	for (let i = 0; i < 6; i++) {
		let radom = Math.floor(Math.random() * 10);
		code += radom;
	}

	return code
}

function fillZero(num) {
	let n = String(num)
	if (n.length === 1) {
		n = '0' + n
	}

	return n
}


function genMid() {
	let random = genRandom()
	const date = new Date()
	const month = fillZero(date.getMonth() + 1)
	const day = fillZero(date.getDate())

	return month + day + random
}

export {
	genMid
}